package xkp.lesson.dao;

import java.sql.SQLException;
import java.util.List;

public interface BaseDao<T> {
    public List<T> selectAll() throws SQLException;
    public T selectById(Integer id) throws SQLException;
    public boolean insert(T t) throws SQLException;
    public boolean deleteById(Integer id) throws SQLException;
    public boolean update(T t) throws SQLException;
}
